package com.codeplay.service;

import com.codeplay.entity.LearningProgress;
import java.util.List;

public interface LearningProgressService {
    LearningProgress createLearningProgress(LearningProgress learningProgress);
    LearningProgress getLearningProgressById(Long id);
    List<LearningProgress> getLearningProgressByUserAndCourse(Long userId, Long courseId);
    LearningProgress getLearningProgressByUserAndContent(Long userId, Long contentId);
    List<LearningProgress> getLearningProgressByUserAndChapter(Long userId, Long chapterId);
    LearningProgress updateLearningProgress(LearningProgress learningProgress);
    void deleteLearningProgress(Long id);
    double calculateCourseProgress(Long userId, Long courseId);
    double calculateChapterProgress(Long userId, Long chapterId);
} 